<?php

namespace app\api\controller\baiying;


use app\common\exception\UploadException;
use think\Config;
use think\Hook;
use baiying\lib\BYTokenClient;
use think\Db;

/**
 * 公共接口
 */
class Byai extends Bybase {

    protected $noNeedLogin = ['*'];
    protected $noNeedRight = '*';

    public function _initialize() {
        parent::_initialize();
    }
    
    
    
    
    public function autoFenYeGetAiTask(){
        $baiying_api_version = config('zhongzhuan.baiying_api_version');

        $controller = '\app\common\controller\zhongzhuan'. $baiying_api_version .'\Autotasktongbu';
        $param = [
            'access_token'=>$this->access_token,
            'companyId' => $this->companyId
        ];
        $data = call_user_func_array(array($controller, 'startTongbu'),array($param));
        
        
        $this->success('',$data);
        
    }
    
    

}
